Assigning Color Profiles to Colors
When the user creates or modifies shapes' colors, you assign colors to the ink objects or pixels associated with those shapes. To assure proper color matching, you can assign a color profile to each color or bitmap that the user creates. Normally, the user works with a monitor attached to the system; you can find the profile for that monitor by examining the bitmap property of the view device associated with the view port the user draws into. You can attach that profile to the user's colors. In the case of a single shape displayed on more than one device, you may have to pick (or allow the user to pick) which view device is the controlling one. In agxColor
structure or agxBitmap
structure, you place the color profile reference in theprofile
field.If you assign no color profile to a color or bitmap, Quickdraw GX uses the default color profile when drawing or converting.
If you want to make sure that no matching occurs, assign a zero-length profile to the color or bitmap. A zero-length profile is a color profile object whose profile data is of zero length.